const Person = require('./person').Person;

function personTest() {
    let person = new Person('Tom', 21);
    let expectResult = 'My name is Tom. I am 21 years old.';
    if (person.introduce() === expectResult) {
        console.log('test passed');
    } else {
        console.log('test failed');
    }
}

personTest();